package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 学生实体类
 */
@TableName("t_student")
public class StudentBean {
    /**编号*/
    @TableId(value = "pk_studentId",type = IdType.AUTO)
    private Integer id;
    /**姓名*/
    @TableField("s_name")
    private String name;
    /**性别*/
    @TableField("s_sex")
    private String sex;
    /**生日*/
    @TableField("s_birthday")
    private LocalDate birthday;
    /**学历*/
    @TableField("s_edu")
    private String edu;

    public StudentBean(String name, String sex, LocalDate birthday, String edu) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.edu = edu;
    }

    public StudentBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getEdu() {
        return edu;
    }

    public void setEdu(String edu) {
        this.edu = edu;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", edu='" + edu + '\'' +
                "}\n";
    }
}
